﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChaKanRZ.aspx.cs" Inherits="Web.AuthorizationSystem.ChaKanRZ" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../JS/jquery.js" type="text/javascript"></script>
    <script src="../JS/AddEditCancel.js"></script>
    <script type="text/javascript">
        function OpenDetail(id) {
            openCenter("ChaKanRZ_QX.aspx?id="+id, "800px", "480px");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            查看日志
        </div>
    <div>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <table>
                        <tr>
                            <td align="right">类型：</td>
                            <td>
                                <asp:Panel runat="server" ID="Panel3">
                                    <dx:ASPxComboBox runat="server" ID="cmbLX" ClientInstanceName="cmbLX" Width="60%">
                                        <Items>
                                            <dx:ListEditItem  Text="自来水" Value="0" Selected="true"/>
                                            <dx:ListEditItem  Text="地表水" Value="1" />
                                            <dx:ListEditItem  Text="地下水" Value="2" />
                                        </Items>
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td><span style="font-size: 12px;">日志时间：</span></td>
                            <td>
                                <dx:ASPxDateEdit runat="server" ID="deRZ1" ClientInstanceName="deRZ1" Width="80%">
                                    <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                </dx:ASPxDateEdit>
                            </td>
                            <%--<td>到</td>--%>
                            <td>
                                <dx:ASPxDateEdit runat="server" ID="deRZ2" ClientInstanceName="deRZ2" Width="80%" >
                                    <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                </dx:ASPxDateEdit>
                            </td>
                            <td>
                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                     <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel> 
                                <dx:ASPxButton runat="server" ID="btnSearch" Text="查询" OnClick="btnSearch_Click">
                                    <ClientSideEvents  Click="function(s,e){LoadPanel.Show();}"/>
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="divList" align="center">
                    <div>
                        <dx:ASPxGridView ID="gvList" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1"  Width="100%" >
                            <Columns>
                                <dx:GridViewDataTextColumn FieldName="S_CAOZUOLX" Caption="操作类型" Width="10%">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YEWULX" Caption="业务类型" Width="10%">
                                    <DataItemTemplate>
                                        <%#Eval("S_YEWULX").ToString()=="1"?"自来水":Eval("S_YEWULX").ToString()=="2"?"地下水":"地表水" %>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_SUOSHUMK" Caption="所属模块" Width="20%">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_BIAOMING" Caption="数据表" Width="15%">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_CAOZUOR" Caption="操作人" Width="10%">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="D_CAOZUOSJ" Caption="操作时间" Width="10%">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Width="5%">
                                    <DataItemTemplate>
                                        <a href="#" onclick="OpenDetail('<%#Eval("ID")%>')">查看明细</a>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings  VerticalScrollableHeight= "500" VerticalScrollBarMode="Auto"  />
                        </dx:ASPxGridView>
                    </div>
                    
                </div>
            </ContentTemplate>
        </asp:UpdatePanel> 
    </div>
    </form>
</body>
</html>
